<template>
  <!-- 已归档或者中止页面 -->
  <div class="box  clearfix">
    <section class="section_one">
      <Areas></Areas>
      <div class="title_sub prduct_bod_r">产品说明：</div>
      <ProductDescriptionToo></ProductDescriptionToo>
    </section>

    <section class="section_wrap">
      <div class="title_sub infro_bod_l">信息查看：</div>
      <div class="state" v-if="this.orderStatus == 5">状态：已归档</div>
      <div class="state" v-if="this.orderStatus == 6">状态：已中止</div>
      <EnterInfor></EnterInfor>
    </section>

    <section class="section_wrap">
      <div class="title_sub infro_bod_l">财务信息：</div>
      <LoanInfor :orderNumber="orderNumber"></LoanInfor>
    </section>

    <section class="section_wrap">
      <!-- 归档处理 -->
      <div class="title_sub infdh_bod_l">
        审批信息：
      </div>
      <FeedBack></FeedBack>
    </section>
    <section class="section_wrap">
      <div class="title_sub upload_bod_l">附件管理：</div>
      <!-- 上传组件 -->
      <Upload class="uploadStyle" :isNew="isNew"></Upload>
    </section>
    <section class="section_wrap">
      <div class="title_sub prduct_bod_r">审批流：</div>
      <ApprovalText :orderNumber="orderNumber"></ApprovalText>
      <div class="title_sub infro_bod_l">操作记录：</div>
      <OperationRecords :orderNumber="orderNumber"></OperationRecords>
    </section>
  </div>
</template>

<script>
import ProductDescriptionToo from "../../components/business/ProductDescriptionToo";
import ApprovalText from "../../components/business/ApprovalText";
import Upload from "../../components/accfund/Upload";
import Areas from "../../components/accfund/Areas";
import EnterInfor from "../../components/accfund/EnterInfor";
import LoanInfor from "@/components/accfund/LoanInfor";
import OperationRecords from "../../components/business/OperationRecords";
import FeedBack from "@/components/accfund/FeedBack";
import { getProductUrl } from "../../../src/assets/js/api";
export default {
  name: "Released",
  components: {
    Areas,
    EnterInfor,
    ProductDescriptionToo,
    ApprovalText,
    Upload,
    LoanInfor,
    OperationRecords,
    FeedBack
  },
  data() {
    return {
      released: true,
      orderNumber: "",
      markUpdate: "",
      isNew: false,
      orderStatus: ""
    };
  },
  created() {
    this.orderNumber = sessionStorage.getItem("orderNumber");
    this.findProductUrl(this.orderNumber);
  },
  methods: {
    //根据订单查询路由path路径
    findProductUrl(orderNumber) {
      getProductUrl({
        orderNumber: orderNumber
      }).then(res => {
        this.ProductUrl = res.data.productUrl;
        this.orderStatus = res.data.orderStatus;
      });
    }
  }
};
</script>

<style scoped type="less">
.text {
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  margin-top: 20px;
  text-indent: 2em;
}
.state {
  font-size: 22px;
  font-weight: bold;
  float: right;
  margin-top: -20px;
  margin-right: 3%;
}
.commission {
  height: 70px;
  line-height: 70px;
}
.commissionText {
  font-size: 20px;
  font-weight: bold;
  float: left;
  margin-left: 3%;
}
</style>
